package com.int_tech.data;

/**
 * Created by liubch on 2018/6/10.
 */
public class tenToTwo {

    public static void main(String[] args) {

//

        String sss = "FFCB";

        System.out.print((Integer.parseInt("FFFF",16)-Integer.parseInt("FFCB",16))*3.9);

    }



    public static String bin2hex(String bin) {
        char[] digital = "0123456789ABCDEF".toCharArray();
        StringBuffer sb = new StringBuffer("");
        byte[] bs = bin.getBytes();
        int bit;
        for (int i = 0; i < bs.length; i++) {
            bit = (bs[i] & 0x0f0) >> 4;
            sb.append(digital[bit]);
            bit = bs[i] & 0x0f;
            sb.append(digital[bit]);
        }
        return sb.toString();
    }

}
